﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FooFun.DataElements.Dtos;

namespace FooFun.Web.Controls
{
    public class TopicTitleLink : DataElementControl
    {
        public override IDataElement DataElement
        {
            get
            {
                return base.DataElement;
            }
            set
            {
                base.DataElement = value;

                if (value != null)
                {
                    IDataElement topic = base.DataElement;

                    IDataElement status = topic["@Status"];
                    if (status.Equals("Sealed"))
                    {
                        ShowContent("Sealed");
                    }
                }
            }
        }
    }
}
